package com.nondo.dean.order.model;

public class ConsigneeBean {
    /**
     * 经销商名称
     */
    private String userName;
    /**
     * 手机号
     */
    private String userTelphone;
    /**
     * 详细地址
     */
    private String userAddress;

    /**
     * @return the userName
     */
    public String getUserName() {
        return userName;
    }

    /**
     * @param userName the userName to set
     */
    public void setUserName(String userName) {
        this.userName = userName;
    }

    /**
     * @return the mobile
     */
    public String getUserTelphone() {
        return userTelphone;
    }

    /**
     * @param mobile the mobile to set
     */
    public void setUserTelphone(String userTelphone) {
        this.userTelphone = userTelphone;
    }

    /**
     * @return the address
     */
    public String getUserAddress() {
        return userAddress;
    }

    /**
     * @param address the address to set
     */
    public void setUserAddress(String userAddress) {
        this.userAddress = userAddress;
    }

    /**
     * 将经销商用户的地址信息存入consigneeBean
     * @param userBean
     * @return {@link ConsigneeBean} consigneeBean
     */
    public static ConsigneeBean covertToBean(UserBean userBean) {
        ConsigneeBean consigneeBean = new ConsigneeBean();
        consigneeBean.setUserName(userBean.getUserName());
        consigneeBean.setUserTelphone(userBean.getMobile());
        consigneeBean.setUserAddress(userBean.getAddress());
        return consigneeBean;
    }

}
